COUNT Billable Metric
Step-by-Step Setup When creating a COUNT-based metered feature:-
Navigate to Features
- Go to Product Catalog → Features
- Click “Add Feature”
-
Basic Information
- Name: “API Calls” (or descriptive name)
- Type: Select “Metered”
-
Event Configuration
- Event Name:
api.calls
(must match your event data) - Aggregation Function: Count
- Aggregation Field: Leave empty (not required for COUNT)
- Event Name:
-
Usage Settings
- Usage Reset: Periodic (for monthly limits) or Cumulative
- Unit Name:
API call / API calls
- Save Feature
Calculation Example
Event Data
Calculation Process
- Event Matching: All events with
event_name = "api.calls"
- Deduplication: Remove duplicate event IDs
evt_001
(first occurrence)evt_002
evt_001
(duplicate - ignored)
- Count Result:
2
(distinct events)
2 API calls
Use Cases
API Request Tracking
Perfect for: RESTful APIs, GraphQL queries, webhook callsFile Operations
Perfect for: File uploads, downloads, processing tasksTransaction Counting
Perfect for: Payment transactions, database operations, user actionsFeature Usage
Perfect for: Feature activations, button clicks, page viewsWhen to Use COUNT
✅ Use COUNT when:- Tracking discrete events or actions
- You don’t need to measure quantity/volume
- Simple occurrence-based billing
- High-volume event streams (best performance)
Next Steps
- Creating a Metered Feature - Complete setup guide
- Sending Events - How to transmit COUNT events